package com.chinameyer.equipment_ebook.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chinameyer.equipment_ebook.bean.Event;
import com.chinameyer.equipment_ebook.vo.DocumentsVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author meyer@HongYe
 */
@Repository
public interface EventMapper extends BaseMapper<Event> {
    List<DocumentsVO> getAllDocuments(@Param("equipmentNo") String equipmentNo);

    List<String> getTotalDocuments(@Param("equipmentNo") String equipmentNo,@Param("manualType") String manualType,
                          @Param("userId") Integer userId);


    String selectTypeById(@Param("eventId") int eventId);

    List<String> selectEquipmentNoByUserId(@Param("equipmentNo") String equipmentNo, @Param("manualType") String manualType,
                                           @Param("userId") Integer userId,@Param("start") int start, @Param("limit") int limit);

    List<String> selectEquipmentNosByUserId(@Param("userId") Integer userId);
}
